<style>
    select {
        /*重置Chrome和Firefox的select边框样式*/
        border: 1px solid #000;
        /*清除默认的select选择框样式*/
        appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;
    }
</style>
<link rel="stylesheet" href="__STATIC__/admin/css/welcome.css?v={:time()}" media="all">
<div class="layuimini-container">
    <div class="layuimini-main">
        <form id="app-form" class="layui-form layuimini-form">
            <div class="layui-form-item">

                <div class="layui-inline">
                    <label class="layui-form-label">用户类型：</label>
                    <div class="layui-input-block" style="width: 100px;">
                        <select name="type" id="type">
                            <option value="0" selected>全部</option>
                            <option value="1">会员</option>
                            <option value="2">游客</option>
                        </select>
                    </div>
                </div>


                <div class="layui-inline">日期：</div>

                <div class="layui-inline">
                    <div class="layui-input-inline" style="width: 100px;">
                        <input autocomplete="off" type="text" name="date" id="date" data-date="" data-date-type="date"
                               class="layui-input"
                               placeholder="日期" value="">
                    </div>
                </div>

                <div class="layui-inline">时间：</div>
                <div class="layui-inline">
                    <div class="layui-input-inline" style="width: 80px;">
                        <input autocomplete="off" type="text" name="start_time" id="start_time" data-date=""
                               data-date-type="time"
                               class="layui-input" placeholder="开始时间" value="">
                    </div>
                    <div class="layui-form-mid">-</div>
                    <div class="layui-input-inline" style="width: 80px;">
                        <input autocomplete="off" type="text" name="end_time" id="end_time" data-date=""
                               data-date-type="time"
                               class="layui-input" placeholder="结束时间" value="">
                    </div>
                </div>

                <div class="layui-inline">
                    <button type="button" class="layui-btn layui-btn-normal" id="search">查询</button>
                </div>
                <div class="layui-inline" onclick="statistics()" style="height:35px;cursor: pointer;">
                    <img style="height:100%;" src="https://direct-file.oss-cn-beijing.aliyuncs.com/admin/problem.png"
                         alt="">
                </div>
            </div>
        </form>

        <div id="echarts-records" style="width: 100%;min-height:500px"></div>
    </div>

    <div class="layui-row">
        <table class="layui-table text-center" lay-skin="line">
            <thead>
            <tr>
                {if $adminGroup == 1 or $adminGroup == 5}
                <th style="text-align: center;">房间</th>
                <th style="text-align: center;">在线用户数</th>
                <th style="text-align: center;">在线游客数</th>
                <th style="text-align: center;">注册会员数</th>
                {elseif $adminGroup == 6 /}
                <th style="text-align: center;">管理员</th>
                {elseif $adminGroup == 7 /}
                <th style="text-align: center;">业务员</th>
                {/if}
                <th style="text-align: center;">在线会员数</th>
            </tr>
            </thead>
            <tbody>
            {volist name="roomsData" id="vo"}
            <tr>

                {if $adminGroup == 1 or $adminGroup == 5}
                <td>{$vo.rid}</td>
                <td>{$vo.total_nums}</td>
                <td>{$vo.tourist_nums}</td>
                <td>{$vo.register_nums}</td>
                {elseif $adminGroup == 6 /}
                <td>{$vo.rid}</td>
                {elseif $adminGroup == 7 /}
                <td>{$vo.rid}</td>
                {/if}
                <td>{$vo.users_nums}</td>
            </tr>
            {/volist}
            </tbody>
        </table>
    </div>

</div>


<script>
    function statistics() {
        layer.open({
            type: 2,
            title: "帮助",
            area: ['1016px', '700px'],
            content: '/admin/index/assist?type=statistics' //iframe的url
        });
    }

</script>